<?php
/**
 * AllTests - A Test Suite for your Application 
 * 
 * @author
 * @version 
 */

set_include_path(
	'.' . PATH_SEPARATOR 
	. '../library' . PATH_SEPARATOR 
	. '../application/default/models/' . PATH_SEPARATOR 
	. get_include_path()
);

// Set up autoload.
require_once "Zend/Loader.php";
Zend_Loader::registerAutoload();


require_once '../library/Trc/Initializer.php';
require_once 'Zend/Test/PHPUnit/ControllerTestCase.php';
require_once 'PHPUnit/Framework/TestCase.php';
require_once './application/default/controllers/IndexControllerTest.php';
require_once './application/default/controllers/ErrorControllerTest.php';
require_once './application/default/models/LanguagesTest.php';

/**
 * AllTests class - aggregates all tests of this project
 */
class AllTests extends PHPUnit_Framework_TestSuite {

	/**
	 * Constructs the test suite handler.
	 */
	public function __construct() {
		$this->setName('AllTests');
		// Controllers
		$this->addTestSuite('IndexControllerTest');
		$this->addTestSuite('ErrorControllerTest');
		// Models
		$this->addTestSuite('LanguagesTest');
	}
	
	/**
	 * Creates the suite.
	 */
	public static function suite() {
		return new self ( );
	}
}